﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Miris.HumanMilkAnalyser.DataModel;
using Miris.HumanMilkAnalyser.Service.Interface;

namespace Miris.HumanMilkAnalyser.WPF.Shared
{
    public static class SharedEntityStorage
    {
        public static IList<AnalysisItem> AnalysisItemList { get; set; }

        /// <summary>
        /// Load all AnalysisItem that stored in SharedVariableStorage.
        /// </summary>
        public static void LoadSharedAnalysisItemList(IServiceFactory serviceFactory)
        {
            SharedEntityStorage.AnalysisItemList = serviceFactory.CreateAnalysisItemService().GetAll();
        }
    }
}